[NTG-context] Re: how to define an environment with key=value arguments

2023-09-09 Thread Henning Hraban Ramm
Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm: But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup gets the value

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Am 08.09.23 um 17:02 schrieb Henning Hraban Ramm: We can discuss the details next week and you put the resulting template on the wiki. Ah, I guess I understand the template mechanism. Yet again glorious setups. Will probably manage. So far: \definepageinjection[chapter:start][ page=left,

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Am 08.09.23 um 16:21 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 08.09.2023 um 13:09: Am 08.09.23 um 12:35 schrieb Wolfgang Schuster: For images (and other content) which are placed on a separate page at the start of a chapter you can use the pageinjection mechanism which was

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 08.09.2023 um 13:09: Am 08.09.23 um 12:35 schrieb Wolfgang Schuster: For images (and other content) which are placed on a separate page at the start of a chapter you can use the pageinjection mechanism which was added for this purpose. Thank you! You’re right,

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Am 08.09.23 um 12:35 schrieb Wolfgang Schuster: For images (and other content) which are placed on a separate page at the start of a chapter you can use the pageinjection mechanism which was added for this purpose. Thank you! You’re right, that might be enough. (Documented only in

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 08.09.2023 um 12:22: Hi, for an involved image placement (full page image starting each chapter, several stacked elements), I’d like an environment that accepts key-value arguments, like \startMyFigure[page=left,title={My caption}] \externalfigure[dummy

[NTG-context] how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Hi, for an involved image placement (full page image starting each chapter, several stacked elements), I’d like an environment that accepts key-value arguments, like \startMyFigure[page=left,title={My caption}] \externalfigure[dummy]… \stopMyFigure I don’t think that a real float makes sense

Re: [NTG-context] Userdata environment

2023-04-03 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 03.04.2023 um 21:42: Hi, I have already created a thread on the subject and Wolgang, Marco and Taco have replied but the userdata environment is not yet clear to me. I would like, if possible, to write a definition, a property or a theorem

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
Hi, I have already created a thread on the subject and Wolgang, Marco and Taco have replied but the userdata environment is not yet clear to me. I would like, if possible, to write a definition, a property or a theorem on the left and illustrate it in the right margin with an example. In the code

Re: [NTG-context] Bug in maths environment: thematrix

2023-03-12 Thread Otared Kavian via ntg-context
> On 12 Mar 2023, at 18:04, Hans Hagen via ntg-context > wrote: >> […] > i have a fix but there will be no uploads till texlive has been frozen / > packages > > Hans Thanks Hans ! There is no problem for waiting… Best regards :

Re: [NTG-context] Bug in maths environment: thematrix

2023-03-12 Thread Hans Hagen via ntg-context
On 3/9/2023 2:45 PM, Otared Kavian via ntg-context wrote: Hi Hans, I noticed that in some situations the command \thematrix does not show all its arguments correctly: some parts are omitted in the typeset formula. In some occasions adding some groupings solves the issue, but not always. I

[NTG-context] Bug in maths environment: thematrix

2023-03-09 Thread Otared Kavian via ntg-context
Hi Hans, I noticed that in some situations the command \thematrix does not show all its arguments correctly: some parts are omitted in the typeset formula. In some occasions adding some groupings solves the issue, but not always. I noticed this bug two weeks ago, but could not produce a

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-18 Thread Pablo Rodriguez via ntg-context
On 11/18/22 15:52, Wolfgang Schuster via ntg-context wrote: > Pablo Rodriguez via ntg-context schrieb am 15.11.2022 um 16:06: >> [...] >> It looks like when --environment is used, ConTeXt assumes that the main >> source only contains text. Which makes sense (at least, to me)

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-18 Thread Wolfgang Schuster via ntg-context
files, there seems to be no need for \starttext ... \stoptext. [] Therefore my question: Does the use –environment automatically wrap the processed file in \starttext ... stoptext ? Hi Denis, try a source file with this contents: \ConTeXt\ is great. with the following environment

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-16 Thread Wolfgang Schuster via ntg-context
... \stoptext. [...] Running context text.xml –environment=setups.tex gives me a proper PDF without errors. Therefore my question: Does the use –environment automatically wrap the processed file in \starttext ... stoptext ? If not, what’s the reason for this behaviour? Am I missing something

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-16 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Pablo > Rodriguez via ntg-context > Gesendet: Dienstag, 15. November 2022 16:07 > An: Denis Maier via ntg-context > Cc: Pablo Rodriguez > Betreff: Re: [NTG-context] Do environment files ad

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-15 Thread Pablo Rodriguez via ntg-context
o need for \starttext ... \stoptext. > [] > Therefore my question: > > Does the use –environment automatically wrap the processed file in > \starttext ... stoptext ? Hi Denis, try a source file with this contents: \ConTeXt\ is great. with the following environment: \setuppa

[NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-15 Thread Denis Maier via ntg-context
\xmlsetsetup{\xmldocument}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:demo} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\endgraf \stopxmlsetups %%% Running context text.xml -environment=setups.tex gives

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Pablo Rodriguez via ntg-context
On 10/25/22 02:35, Joel via ntg-context wrote: > I have a simple tabulate environment like this: > [...] > I'd like to vertically center the content in the one marked row. By > default, they seem to place each cell aligned to the top, but how can I > adjust them vertica

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 25.10.2022 um 02:35: I have a simple tabulate environment like this: \starttext \starttabulate[|p(.45\textwidth)|cp(.1\textwidth)|p(.45\textwidth)|]             \NR                 \HL                 \NC Cause    \NC \NC Effect    \NC\NR

[NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-24 Thread Joel via ntg-context
I have a simple tabulate environment like this: \starttext    \starttabulate[|p(.45\textwidth)|cp(.1\textwidth)|p(.45\textwidth)|]             \NR                 \HL                 \NC Cause    \NC \NC Effect    \NC\NR                 \HL                 \NC            \NC \NC

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
Oliver Sieber via ntg-context schrieb am 19.10.2022 um 11:31: Dear ConTeXt Users I am relatively new to context and I am suffering with a problem with the framed environment. I want to use a framed textbox for Definitions in my script. I also want to use floating figures. But this does

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear Uschi Thanks for the example. But unfortunately it behaves similiar. As soon as I want to place the figure to the right by using \placefigure [right]… with floating text to the left. The framed environment behaves strange, i.e. it seems to ignore the image. Just using a centered image

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Ursula Hermann via ntg-context
. Oktober 2022 11:31 An: ntg-context@ntg.nl Cc: Oliver Sieber Betreff: [NTG-context] Floating Figure in framed-environment Dear ConTeXt Users I am relatively new to context and I am suffering with a problem with the framed environment. I want to use a framed textbox for Definitions in my script. I

[NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear ConTeXt Users I am relatively new to context and I am suffering with a problem with the framed environment. I want to use a framed textbox for Definitions in my script. I also want to use floating figures. But this does not work and I haven’t found out why. Maybe I totally use

[NTG-context] Suggestions for project structures, environment inheritance, local overrides

2022-08-17 Thread Denis Maier via ntg-context
ConTeXt. Transformations are performed with the help of a makefile. The _assets folder contains a bunch of helper files, scripts, and two environment files used by ConTeXt : jats.tex -> contains the setup for JATS XML layout.tex -> contains layout settings Now, this mostly works, but I som

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-21 Thread Vincent Hennebert via ntg-context
On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote: > On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: > > > AFAIK, there is no in-built support for this. > > FYEO: > > \starttext > > \startMPcode > u = 123; > \stopMPcode > >

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote: next upload: \resetMPinstance[metafun:1] but try to avoid this because reloading takes time Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: AFAIK, there is no in-built support for this. FYEO: \starttext \startMPcode u = 123; \stopMPcode \ctxlua{metapost.reset("metafun:1")} \startMPcode u = 123; \stopMPcode \stoptext (the instance is reported on the console)

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote: Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Aditya Mahajan via ntg-context
On Thu, 20 Jan 2022, Vincent Hennebert via ntg-context wrote: > Hi, > > Say I’m writing a document containing many independent MetaPost > figures. I don’t want to bother with enclosing each and every graphics > in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But > I don’t

[NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Vincent Hennebert via ntg-context
Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want variables from previous graphics to leak into following ones either.

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-04 Thread Jan-Erik Hägglöf via ntg-context
Many thanks, that was very structured and helpful. /Jan-Erik > 3 jan. 2022 kl. 12:07 skrev kauśika : > > On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: >> If 'Exercises' and 'Answers to exercises' are some head structure (assuming >> unnumbered since they are so in your example): >>

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: > If 'Exercises' and 'Answers to exercises' are some head structure (assuming > unnumbered since they are so in your example): > \definehead[exercises][subject] > \definehead[answers][subject] > then you can simply do >

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
On Monday, January 3, 2022 4:21:27 PM IST Jan-Erik Hägglöf via ntg-context wrote: > I want a simple solution to reset the counter so it achieves the following > result: > > Exercises > > 1 First exercise > > 2 Second exercise > > Answers to exercises > > 1 Answers to first exercise > > 2

[NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread Jan-Erik Hägglöf via ntg-context
Hi! I’ve been doing this in my exams to define exercises in a structural way. \defineenumeration[uppgift] \setupenumerations[uppgift][alternative=left,width=1cm,text= ,after={\blank[2*big]}] \starttext \startuppgift Here comes the exercise \stopuppgift \stoptext I want a simple solution

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 27.07.2021 um 18:24: Hi, The macro \card must allow the word Card to be written in the normal style. Hans' solution works well. To use \text with a certain style use a \mathtext.. command, e.g. \define[1]\card {\m{\mathtexttf{Card}\thinspace#1}} Wolfgang

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 16:32: Hello, How to make the macro work in the environment definition ? Can you explain your problem with the \card. Wolfgang ___ If your question

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Hans Hagen via ntg-context
On 7/27/2021 4:32 PM, Fabrice Couvreur via ntg-context wrote: Hello, How to make the macro work in the environment definition ? not sure what you want to achieve, maybe this? \protected\def\card#1{\m{\mfunction{Card}\thinspace#1}} \defineenumeration [définition] [text=Définition

[NTG-context] Macro that does not work in an environment

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hello, How to make the macro work in the environment definition ? Thank you Fabrice \unexpanded\def\card#1{\math{\text{Card}\thinspace#1}} \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
> wrote: > > Hi Michael, > > > > you could try columnsets and use a columnsetspan for the text above the > columns. > > > > I don’t know if tables work well within a columnset, though. > > > > Hraban > > > > > > > Am 22.07.2021 u

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Henning Hraban Ramm
1 um 11:52 schrieb Michael Guravage > > : > > > > I have created a table and placed it inside a columns environment; which > > works as advertised. However, if I place any text before the column > > environment, the columns break. More clearly stated, only one column

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
> > I don’t know if tables work well within a columnset, though. > > Hraban > > > > Am 22.07.2021 um 11:52 schrieb Michael Guravage < > gurav...@literatesolutions.com>: > > > > I have created a table and placed it inside a columns environment; which &

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Henning Hraban Ramm
Hi Michael, you could try columnsets and use a columnsetspan for the text above the columns. I don’t know if tables work well within a columnset, though. Hraban > Am 22.07.2021 um 11:52 schrieb Michael Guravage > : > > I have created a table and placed it inside a columns enviro

[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
I have created a table and placed it inside a columns environment; which works as advertised. However, if I place any text before the column environment, the columns break. More clearly stated, only one column appears on the first table page; whereas two columns resume on subsequent pages. I have

Re: [NTG-context] Project structure: Specifying environment in component

2021-06-16 Thread denis.maier
I’ll look into this, and post to the list once I’ve made the changes so others can comment. Denis Von: ntg-context Im Auftrag von jethro Reuel Gesendet: Mittwoch, 9. Juni 2021 14:49 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Project structure: Specifying environment

Re: [NTG-context] Project structure: Specifying environment in component

2021-06-09 Thread jethro Reuel
d_ x > Gesendet: Mittwoch, 9. Juni 2021 13:36 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Project structure: Specifying environment in component > > Hello everyone, > > I am creating a project of notes across different areas of mathematics I am > studying and t

Re: [NTG-context] Project structure: Specifying environment in component

2021-06-09 Thread denis.maier
that no inheritance of environments happens here. Denis Von: ntg-context Im Auftrag von mastermind_ x Gesendet: Mittwoch, 9. Juni 2021 13:36 An: ntg-context@ntg.nl Betreff: [NTG-context] Project structure: Specifying environment in component Hello everyone, I am creating a project of notes

[NTG-context] Project structure: Specifying environment in component

2021-06-09 Thread mastermind_ x
://wiki.contextgarden.net/Project_structure My question is: Why do I need to specify \environment env_notes before It works at the component level? The wiki didn’t say that. Plus it is already specified at the product level. Thanks

Re: [NTG-context] Side-by-side environment

2021-05-31 Thread Werner Hennrich
d play around, for the full list of options refer to the commands reference <http://www.pragma-ade.com/general/qrcs/setup-en.pdf>. All the best! Werner Am 31.05.21 um 09:52 schrieb Tommaso Gordini: Hello everybody. Some time ago, Wolfgang helped me write an environment to have code above

[NTG-context] Side-by-side environment

2021-05-31 Thread Tommaso Gordini
Hello everybody. Some time ago, Wolfgang helped me write an environment to have code above and typeset output below. I'll glue you a MWE below. \mainlanguage [it] \setupbodyfont [modern] \defineuserdata [example] [alternative=example] \defineuserdataalternative [example

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Alan Braslau
Thank you all. No modes, no funniness in the environment file. The test case works (Acroread/properties shows the Title, Author, Subject, and Keywords fields). However, my real case does get the other fields (Author, Subject, and Keywords) but contains in the Title field the filename

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Henning Hraban Ramm
metadata:author={\documentvariable{author}}, >>> metadata:keywords={\documentvariable{keywords}}] >>> >>> \startdocument [title={My title}] >>> \input knuth >>> \stopdocument >>> end example >>> >>> Wolfgang >> &

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Wolfgang Schuster
. The above example does work. It fails to set the metadata if one moves the \setupdocument to an environment file. As you write, "everything has to be in the same file". The requirement was only necessary for the example to check if the metadata end up in the PDF file. You

Re: [NTG-context] \documentvariable (used in environment)

2020-07-24 Thread Alan Braslau
to set the metadata if one moves the \setupdocument to an environment file. As you write, "everything has to be in the same file". This is my question, how to set these using an environment file, thus NOT the same file as the \startdocument in a project structu

Re: [NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Wolfgang Schuster
Alan Braslau schrieb am 23.07.2020 um 00:21: Hello, I have put the following in an environment \startenvironment MYENVIRONMENT \setupdocument   [metadata:title={\documentvariable{title}},    metadata:subtitle={\documentvariable{subtitle}},    metadata:author={\documentvariable{author

[NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Alan Braslau
Hello, I have put the following in an environment \startenvironment MYENVIRONMENT \setupdocument [metadata:title={\documentvariable{title}}, metadata:subtitle={\documentvariable{subtitle}}, metadata:author={\documentvariable{author}}, metadata:keywords={\documentvariable{keywords

Re: [NTG-context] issue with environment and Lua

2020-05-27 Thread Pablo Rodriguez
On 5/26/20 9:01 PM, Hans Hagen wrote: > On 5/26/2020 8:24 PM, Pablo Rodriguez wrote: > >> I have added an \xmlflushcontext to a non-minimal environment file and >> it crashes again and again. > > then you probably use the wrong command Many thanks for your reply, Hans.

Re: [NTG-context] issue with environment and Lua

2020-05-26 Thread Hans Hagen
On 5/26/2020 8:24 PM, Pablo Rodriguez wrote: I have added an \xmlflushcontext to a non-minimal environment file and it crashes again and again. then you probably use the wrong command I get the following errors: lua error > lua error on line 8 in file cont-yes.mkiv: function c

[NTG-context] issue with environment and Lua

2020-05-26 Thread Pablo Rodriguez
Dear list, I have added an \xmlflushcontext to a non-minimal environment file and it crashes again and again. I get the following errors: lua error > lua error on line 8 in file cont-yes.mkiv: function call [560]: ...ext/tex/texmf-context/tex/context/base/mkiv/lxml-tex.lua:918:

[NTG-context] \doublehyphendemerits in project environment

2020-05-24 Thread Marc Trius
Hi, I'm having an issue where \doublehyphendemerits=2 doesn't seem to have an effect when I put it in the environment file, only when it's in the component file. What's going on? I would prefer to not have to repeat this line in every component.. Thank you, Marc Trius

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
Hi Aditya, Thank you for your help ; this also works with pgfplots but the body of the text must be with the same font. I always use the pagella font but it doesn't allow you to use \mathscript{} that's why I use this macro. Are there other free fonts that allow you to do this ? Fabrice

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Fabrice Couvreur wrote: Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. I don't know the answer, but here is a simpler example without pgfplot which fails (different calligraphic C's):

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. Fabrice Le sam. 25 avr. 2020 à 00:13, Fabrice Couvreur a écrit : > Hi, > This macro was written by Otared and it works well unless I change the > size of the font (see the second graph). > How to correct this problem ? >

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
> On 2 May 2020, at 17:08, Wolfgang Schuster > wrote: [comprehensive answer snipped] Thank-you, very helpful. > I attached a slightly modified version of your project structure to show a > different way to organize documents. What I would change is to use a better > section name for each

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread Wolfgang Schuster
n...@scorecrow.com schrieb am 02.05.2020 um 17:14: I'm having trouble with \definehead behaving differently depending upon whether I process a file that includes it via a \input statement versus a project structure that calls it via an environment file referenced from a component file

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
And the attachment (d'oh): <> ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

[NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
I'm having trouble with \definehead behaving differently depending upon whether I process a file that includes it via a \input statement versus a project structure that calls it via an environment file referenced from a component file. Overall aim: I currently produce a small circulation

[NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-04-24 Thread Fabrice Couvreur
Hi, This macro was written by Otared and it works well unless I change the size of the font (see the second graph). How to correct this problem ? Thanks for your help. Fabrice begin example \usemodule[pgfplots] \pgfplotsset{compat=newest}

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 20.04.2020 um 11:00: Hi Wolfgang, Thank you very much ; as usual your explanations are always clear and your approach to the problem intelligent and original. I would however like to know the way in which we can use the command \frameletter except for the rounded

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
Hi Wolfgang, Thank you very much ; as usual your explanations are always clear and your approach to the problem intelligent and original. I would however like to know the way in which we can use the command \frameletter except for the rounded corners with outlinetext. For example, this doesn't

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 20.04.2020 um 10:23: On Mon, Apr 20, 2020 at 09:21:41AM +0200, Wolfgang Schuster wrote: Fabrice Couvreur schrieb am 19.04.2020 um 22:55: Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
On Mon, Apr 20, 2020 at 09:21:41AM +0200, Wolfgang Schuster wrote: > Fabrice Couvreur schrieb am 19.04.2020 um 22:55: > > Hi, > > I try to reproduce the figure as faithfully as possible. I tried for the > > rounded corners to put the key corner = round, but it does not work. > > 1. To create a

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 19.04.2020 um 22:55: Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it does not work. 1. To create a new framed-instance you need \defineframe, \setupframed isn't enough to set the

[NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-19 Thread Fabrice Couvreur
Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it does not work. Thanks for your help. Fabrice \usecolors[xwi] \definecolor [prune] [r=1.29,g=.20,b=.83] \starttext \setupframed[frameletter][corner=round,align=normal]

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-18 Thread Andres Conrado
Or maybe try with "paragraphs": https://wiki.contextgarden.net/Columns#Paragraphs -- Andrés Conrado Montoya http://chiquitico.org ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-18 Thread Henning Hraban Ramm
Salut, do maybe combinations fit your needs? https://wiki.contextgarden.net/Combinations Best, Hraban > Am 2019-11-17 um 11:01 schrieb Fabrice Couvreur : > > Hello, > I am looking but without success ! > I tried \ starthanging [location = right] {tree} \ stophanging but that does > not work

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-17 Thread Fabrice Couvreur
Hello, I am looking but without success ! I tried \ starthanging [location = right] {tree} \ stophanging but that does not work either. Fabrice Le sam. 16 nov. 2019 à 12:44, Fabrice Couvreur a écrit : > Hello, > I want to use a text frame to put text and a probability tree side by > side, but

[NTG-context] Text and tree side by side in a framedtext environment

2019-11-16 Thread Fabrice Couvreur
Hello, I want to use a text frame to put text and a probability tree side by side, but it does not work. Thanks for your help. Fabrice \usemodule[tikz] \usetikzlibrary[trees] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,nonumber}] \starttext

[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
Hi Wolfgang, Why in the first example, the indentation of my Python code that I wish is not respected and that I have to do as the second example to have what I want ? Thank you. Fabrice \defineframedtext [algorithmframe] [width=fit, location=middle,

[NTG-context] Is it possible to define a float environment that uses 2 captions? (and another question)

2019-07-09 Thread Andres Conrado Montoya
I'm working on a book that uses tables and figures, but the editors want to use to diffferent captions for each figure: one as usual, with the float description and number, and another one with a "Source" for said float. Something like: - |

Re: [NTG-context] environment variable for runtime

2019-02-27 Thread Hans Hagen
ime: 526.583 seconds Is this stored in any environment key? How could I access it? it's in the log file: local data= io.loaddata("oeps.log") or "" local pattern = "> runtime: ([%d%.]+) seconds, ([%d]+) processed pages, ([%d]+) shipped pages, ([%d%.]+) pages/second&quo

[NTG-context] environment variable for runtime

2019-02-27 Thread Thomas A. Schmitz
Hi, I would like to typeset the runtime information that context displays at the end of typesetting: mkiv lua stats > runtime: 174.639 seconds, 913 processed pages, 913 shipped pages, 5.228 pages/second system | total runtime: 526.583 seconds Is this stored in any environment

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Marco Patzer
On Thu, 29 Nov 2018 20:30:53 +0100 Wolfgang Schuster wrote: > Below is a improved version of the token method which works with the > new beta. > > \startenvironment [*] > > \definetokenlist [english] % optional because \starttokenlist > \definetokenlist [swedish] % checks if the token lists

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Wolfgang Schuster
Marco Patzer schrieb am 28.11.18 um 08:38: On Tue, 27 Nov 2018 22:41:25 +0100 Wolfgang Schuster wrote: With named setups I need to specify a name for each occurrence and gather them at the end. This is not as clean. Is it possible e.g. to add something to an already existing setup instead of

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Wolfgang Schuster
Marco Patzer schrieb am 28.11.18 um 08:38: On Tue, 27 Nov 2018 22:41:25 +0100 Wolfgang Schuster wrote: With named setups I need to specify a name for each occurrence and gather them at the end. This is not as clean. Is it possible e.g. to add something to an already existing setup instead of

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Marco Patzer
\startmode[*de] > % \setupitemize[i] > % \stopmode > > \startmodeset > [*en] { > \setupitemize[n] > } > [*nl] { > \setupitemize[a] > } > [*de] { > \setupitemize[i] > } > \stopmodeset I do use modes and

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Hans Hagen
On 11/27/2018 10:05 PM, Wolfgang Schuster wrote: Marco Patzer schrieb am 27.11.18 um 21:56: On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: A nudge in the right direction appreciated. \appendtoks     \mainlanguage[\documentvariable{language}]%

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:41:25 +0100 Wolfgang Schuster wrote: > > With named setups I need to specify a name for each occurrence and > > gather them at the end. This is not as clean. Is it possible e.g. to > > add something to an already existing setup instead of creating a new > > one every time?

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
\stopenvironment That works, thanks. One more question: I used to use modes, since I could just \startmode[*en] … \stopmode any number of times. There are many language dependent settings in the environment files. With named setups I need to specify a name for each occurrence and gather them

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
uage}{\mainlanguage[\documentvariable{language}]} > \to \everysetupdocument > > \stopenvironment That works, thanks. One more question: I used to use modes, since I could just \startmode[*en] … \stopmode any number of times. There are many language dependent settings in the environment fi

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 21:56: On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: A nudge in the right direction appreciated. \appendtoks   \mainlanguage[\documentvariable{language}]% %\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}% \to

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: > > A nudge in the right direction appreciated. > > \appendtoks >   \mainlanguage[\documentvariable{language}]% > %\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}% > \to \everysetupdocument That's

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 21:37: Hi, I do have a project structure with environment, project and component files. The language of the individual documents is defined in the components using \setupdocument [language=sv] The environment needs to adjust language-dependent

[NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
Hi, I do have a project structure with environment, project and component files. The language of the individual documents is defined in the components using \setupdocument [language=sv] The environment needs to adjust language-dependent settings. However, when the environment file is read

[NTG-context] custom environment for geographical pictures; new head or special float?

2018-11-24 Thread Damien Thiriet
Hello, When creating my geography presentations, I often need to show so-called « croquis », that are outlines of maps or landscapes. A typical slide with croquis looks like this: --- title --- outline (a MP graphic) --- key to

Re: [NTG-context] Enumerations in an environment

2018-08-13 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 13.08.18 um 12:35: Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic,

[NTG-context] Enumerations in an environment

2018-08-13 Thread Fabrice Couvreur
Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand=\groupedcommand{}{:\,}, width=broad,

Re: [NTG-context] Horizontal line after text in an environment

2018-04-26 Thread Fabrice Couvreur
Hi Hans, Thank you it works perfectly. I know this command but I never know when to use it. Fabrice 2018-04-25 21:22 GMT+02:00 Hans Hagen <j.ha...@xs4all.nl>: > On 4/25/2018 4:59 PM, Fabrice Couvreur wrote: > >> Hello, >> In this environment, when the text has sufficien

Re: [NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Hans Hagen
On 4/25/2018 4:59 PM, Fabrice Couvreur wrote: Hello, In this environment, when the text has sufficient height, the horizontal line is well below the figure. However when the height of text is not sufficient, the position of the line is not correct and I would like it also below the figure

  1   2   3   4   5   >